public class Test {
    public static void main(String[] args) {
        mySigleList mysigleList=new mySigleList();
        mysigleList.addFirst(1);
        mysigleList.addFirst(2);
        mysigleList.addLast(3);
        mysigleList.addLast(4);
        mysigleList.addIndex(1,5);
        //System.out.println(mysigleList.contains(4));
        mysigleList.disPlay();
        System.out.println();
        mysigleList.remove(2);
        mysigleList.disPlay();
    }

}
